NAME =		simpleLightEngine

SRC =		main.cpp \
		Screen.cpp \
		World.cpp \
		Box.cpp \
		utils.cpp \
		slInput.cpp \
		slCamera.cpp \
		slTexture.cpp \
		slLight.cpp \
		slScene.cpp \
		slShader.cpp \
		slSphere.cpp \
		slPrimitive.cpp


OBJ =		$(SRC:.cpp=.o)

CXXFLAGS += -I/usr/include/bullet -I./include -g -g3
LDFLAGS  = -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath -lGL -lGLU -lSDL2 -lSDL2_image -lGLEW -lassimp -lm

all:		$(NAME)

$(NAME):	$(OBJ)
		g++ $(OBJ) -o $(NAME) $(LDFLAGS)

clean:		
		rm -rf $(OBJ)

fclean:		clean
		rm -rf $(NAME)

re:		clean fclean all

kill:
		kill -9 `pidof $(NAME)`